package com.aqie.libfactory.presenter.message;


import com.aqie.libcommon.factory.presenter.BaseContract;
import com.aqie.libfactory.model.db.Message;
import com.aqie.libfactory.model.db.User;

/**
 * 聊天契约
 */
public interface ChatContract {
    interface Presenter extends BaseContract.Presenter {
        // 发送文字
        void pushText(String content, boolean canTalk);

    }

    // 界面的基类
    interface View<InitModel> extends BaseContract.RecyclerView<Presenter, Message> {
        // 初始化的Model
        void onInit(InitModel model);
    }

    // 人聊天的界面
    interface UserView extends View<User> {

    }

    // todo 群聊天的界面

}
